import request from '@/utils/request'

// 巡检记录
export function inspectionList(query) {
  return request({
    url: '/ptsj/inspection/list',
    method: 'get',
    headers: {
      isToken: true
    },
    params: query
  })
}

// 新增巡检记录
export function addInspection(data) {
  return request({
    url: '/ptsj/inspection',
    method: 'post',
    headers: {
      isToken: true
    },
    data: data
  })
}

// 巡检详情
export function inspectionDetail(id) {
  return request({
    url: `/ptsj/inspection/${id}`,
    method: 'get',
    headers: {
      isToken: true
    }
  })
}

